package com.dd.census.entity.base;

import java.util.Date;

public class BaseEntity {

	private Integer id;
	private Integer pageIndex = 1;
	private Integer pageOffset;
	private Integer pageSize = 10;
	private Integer version;
	private Integer status;// 0:正常,1:删除 ,2:停用
	private Integer createUserId;
	private Date createTime;
	private Integer updateUserId;
	private Date updateTime;
	private String landerName;
	private String landerrole;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(Integer pageIndex) {
		this.pageIndex = pageIndex;
	}

	public Integer getPageOffset() {
		pageOffset = (pageIndex - 1) * pageSize;
		return pageOffset;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public Integer getVersion() {
		return version;
	}
	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Integer updateUserId) {
		this.updateUserId = updateUserId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public void setPageOffset(Integer pageOffset) {
		this.pageOffset = pageOffset;
	}

	public String getLanderName() {
		return landerName;
	}

	public void setLanderName(String landerName) {
		this.landerName = landerName;
	}

	public String getLanderrole() {
		return landerrole;
	}

	public void setLanderrole(String landerrole) {
		this.landerrole = landerrole;
	}
}
